WPDiscourse\Test\DiscoursePublishTest S

Total Complexity 41
Dependencies 5
Dependents 0
Total lines 1,079
Lines of code 637
Logical lines of code 419
Comment lines 254
Methods 33
Properties 2

Methods 33

Method Rating Maintainability Complexity Lines of code
test_wpdc_publish_options()
S
47 4 38
test_exclude_tags_with_non_exclusionary_tag()
S
50 3 27
test_exclude_tags_with_exclusionary_tag()
S
52 3 24
test_sync_to_discourse_discourse_username_with_single_user_api_key()
S
45 1 44
test_conversion_of_html_entities_in_title()
S
52 2 25
test_sync_to_discourse_discourse_username()
S
49 1 31
test_sync_to_discourse_when_updating_with_deleted_topic()
S
49 1 31
initialize_variables()
S
52 1 27
test_sync_to_discourse_when_creating_with_embed_error()
S
51 1 25
test_sync_to_discourse_when_updating_with_featured_link()
S
52 1 25
test_sync_to_discourse_when_creating_with_category_error()
S
52 1 24
test_sync_to_discourse_when_creating_with_enqueued_post()
S
52 1 24
test_sync_to_discourse_when_creating_with_response_body_error()
S
53 1 23
test_sync_to_discourse_pin_topic()
S
53 1 22
test_force_publish_max_age_prevents_older_posts_from_being_published()
S
53 1 22
test_sync_to_discourse_when_updating_with_direct_db_publication_flags()
S
52 1 22
test_force_publish_option()
S
54 1 21
test_sync_to_discourse_when_updating()
S
54 1 20
test_force_publish_allowed_property()
S
56 1 18
test_sync_to_discourse_when_creating_with_direct_db_publication_flags()
S
55 1 18
test_sync_to_discourse_when_creating()
S
56 1 16
test_remote_post_failed_to_connect()
S
60 1 14
test_quick_edits_of_unpublished_posts()
S
59 1 14
test_remote_post_forbidden()
S
60 1 13
test_remote_post_unprocessable()
S
60 1 13
test_wp_discourse_before_xmlrpc_publish_filter()
S
60 1 13
test_xmlrpc_publish_failure_notification()
S
63 1 10
setUp()
S
66 1 8
test_remote_post_success()
S
64 1 10
build_post_error()
S
74 1 4
build_body_error()
S
74 1 4
build_notice()
S
79 1 3
setUpBeforeClass()
S
77 1 4